/*
 * Package.cpp
 *
 *  Created on: 2011-04-15
 *      Author: jacek
 */

#include "include/Package.h"
namespace Net {
Package::Package(){
	buffor=0;
	size=0;
	recever=false;
}
void Package::CreateReceiverPackage(int maxSizeBuffor){
	recever=true;
	this->size=maxSizeBuffor;
	buffor=new char[size];
}
Package::~Package(){
	if(recever)
		delete[] buffor;
}

}
